package com.kelvin.paopao.injector.modules;

import com.kelvin.paopao.adapter.OrderAdapter;
import com.kelvin.paopao.injector.PerActivity;
import com.kelvin.paopao.module.market.market.order.OrderActivity;
import com.kelvin.paopao.module.market.market.order.OrderPresenter;
import com.kelvin.paopao.module.market.wallet.charge.ChargeActivity;
import com.kelvin.paopao.module.market.wallet.charge.IWalletChargePresenter;
import com.kelvin.paopao.module.market.wallet.charge.WalletChargePresenter;

import dagger.Module;
import dagger.Provides;

/**
 * Created by MCK on 2017/5/23.
 */

@Module
public class OrderModule {
    private OrderActivity mView;

    public OrderModule(OrderActivity view) {
        this.mView = view;
    }

    @PerActivity
    @Provides
    public OrderPresenter providePresenter() {
        return new OrderPresenter(mView);
    }

    @PerActivity
    @Provides
    public OrderAdapter provideAdapter() {
        return new OrderAdapter(mView);
    }

}
